package com.webfinal.backsystem.dao;

import com.webfinal.backsystem.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    User selectByPrimaryKey(Integer userId);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    User selectByAccount(@Param("account") String account);

    int deleteByaccount(@Param("account") String account);

    List<User> userlist();
}